﻿using System;
using System.Web;
using System.Data;
using System.Web.UI;
using System.Web.UI.WebControls;

using LTJ.Common;
using LTJ.Entity;
using LTJ.FrameWork;
using LTJ.Web.UI;

namespace uswinweb.datacontrol
{
    public partial class pop_shipPortList : BaseWebControl
    {
        protected string parpms = LTJ.Common.Utils.UrlDecode(SASRequest.GetString("parms").Trim());
        protected string search_txt_name = SASRequest.GetString("search_txt_name").Trim();
        protected string search_txt_ename = SASRequest.GetString("search_txt_ename").Trim();
        private string strWhere = "";
        private string orderstr = " order by ename asc ";

        public override void ShowUserControl()
        {
            showdiv = "showdata1";
            strWhere = BaseDatas.GetBaseDataCondation("ports", compid, search_txt_name, search_txt_ename, "", DataMode.LoadPort);
            RowsCount = BaseDatas.GetBaseDataCount(strWhere);
            dataDT = BaseDatas.GetBaseDataByPage(PageIndex, PageSize, strWhere, orderstr);
            GetPageList("search_txt_ename=" + search_txt_ename + "&search_txt_name=" + search_txt_name + "&parms=" + parpms);
        }
    }
}